﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Perseus.WCF.Contract;
using Perseus.WCF.Contract.Data;

namespace Perseus.WCF.Service
{
    public class PerseusDemoService : IDemoService
    {
        /*
            Operations for Calculator
         */
        public double Add(double x, double y)
        {
            return x + y;
        }

        public double Subtract(double x, double y)
        {
            return x - y;
        }

        public double Multiply(double x, double y)
        {
            return x * y;
        }

        public double Divide(double x, double y)
        {
            return x / y;
        }

        /*
            Operations for Hello
         */
        public string SayHello(string name)
        {
            return "Hello " + name;
        }

        /*
            Object Parameter
         */
        public string GetEmployee(EmployeeData employee)
        {
            return employee.ToString();
        }
    }
}
